<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
    <TBODY>
    <TR>
        <TD width=15></TD>
        <TD width="100%" height=20></TD>
        <TD width=15></TD>
    </TR>
    </TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
    <TBODY>
    <TR>
        <TD width=15></TD>
        <TD vAlign=top width="100%" bgColor=#ffffff>
            <form action="saveAdd" method="post">
                <?php if (isset($domain)) echo '<input type="hidden" name="id" value="' . $domain->id . '" />' ?>
                <TABLE borderColor=#cccccc cellSpacing=0 cellPadding=0 width="100%"
                       align=center border=0>
                    <TBODY>
                    <tr>
                        <td style="color: red"><?php if (isset($message)) echo $message ?></td>
                    </tr>
                    <TR>
                        <TD style="width: 10%">上级分类</TD>
                        <TD style="width: 90%"><select id="" name="pid">
                            <option>无</option>
                            <?php
                            foreach ($parentType as $key => $value) {
                                ?>
                                <option <?php if (isset($domain) && $domain->pid == $value->id) echo 'selected=selected' ?>
                                    value="<?php echo $value->id; ?>"><?php echo $value->name; ?></option>
                                <?php }?>
                        </select></TD>
                    </TR>
                    <TR>
                        <TD style="width: 10%">分类名称</TD>
                        <TD style="width: 90%"><input value="<?php if (isset($domain)) echo $domain->name ?>"
                                                      name="name" type="text"/></TD>
                    </TR>
                    <TR>
                        <TD style="width: 10%">操作</TD>
                        <TD style="width: 90%"><input type="submit" value="保存"/></TD>
                    </TR>


                    </TBODY>
                </TABLE>
            </form>
        </TD>
        <TD width=15></TD>
    </TR>
    </TBODY>
</TABLE>